package Base.ExtendTest;

public class CheckAccountTest {
    public static void main(String[] args) {
        // 通过构造器初始化
        CheckAccount account = new CheckAccount(1122, 20000, 0.045, 5000);

        account.withdraw(5000);
        System.out.println(account.getOverdraft());
        System.out.println(account.getBalance());

        System.out.println("=======================");
        account.withdraw(18000);
        System.out.println(account.getOverdraft());
        System.out.println(account.getBalance());


    }
}
